package oas.web;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 * 页面footer的simpletag
 *
 * @author wjy
 * @version v1.0.0
 */
public class FooterSimpleTag extends SimpleTagSupport {

    @Override
    public void doTag() throws JspException, IOException {

        JspWriter out = getJspContext().getOut();

        StringBuilder outMsg = new StringBuilder();
        outMsg.append("<br/> \n");
        outMsg.append("<footer class=\"navbar-fixed-bottom\"> \n");
        outMsg.append("<div class=\"container\" style=\"text-align:center; color:#4a4d52; height:30px\"> \n");
        outMsg.append("<div>线上考勤系统©企业级应用软件开发课程</div> \n");
        outMsg.append("<div>作者：李越、焦天才、许宇鹏、董章祺、张策、王靖元</div> \n");
        outMsg.append("<br/><br/> \n");
        outMsg.append("</div> \n");
        outMsg.append("</footer> \n");

        try {
            out.write(outMsg.toString());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
